package com.deltabravomedia.theoldtoad.server;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Item {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

    @Persistent
    private Date date;
	
	@Persistent
	private String type;
    
    @Persistent
	private String name;
	
	@Persistent
	private String cost;
	
	@Persistent
	private String description;
	
	@Persistent
	private String recommend;
	
	@Persistent
	private boolean containsMeat;
	
	public Item(String type, String name, String cost, String description, String recommend, boolean containsMeat, Date date) {
        this.setType(type);
        this.setName(name);
        this.setCost(cost);
        this.setDescription(description);
        this.setRecommend(recommend);
        this.setContainsMeat(containsMeat);
        this.setDate(date);
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setCost(String cost) {
		this.cost = cost;
	}

	public String getCost() {
		return cost;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setContainsMeat(boolean containsMeat) {
		this.containsMeat = containsMeat;
	}

	public boolean isContainsMeat() {
		return containsMeat;
	}

}